package com.wang.Param;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value="注册参数", description="用于手机号/邮件注册入参")
public class UserRegisterParam implements Serializable {

    private static final long serialVersionUID = 1L;

    @Length(min = 6,max = 20,message = "用户名的长度6-20")
    @ApiModelProperty(value = "手机号/邮箱")
    private  String userTelOrEmail;

    @Length(min = 6,max = 6,message = "用户名的长度6")
    @ApiModelProperty(value = "验证码")
    private  String verificationCode;
}
